package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feign.fallback.SeckillProductFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName SeckillProductFeignApi
 * @Author VCR
 * @Date 2021/12/31 0:12
 * @Version 1.0
 */

@FeignClient(name = "seckill-service",fallback = SeckillProductFeignFallBack.class)
public interface SeckillProductFeignApi {

    @RequestMapping("/seckillProduct/selectByTime")
    Result<List<SeckillProductVo>> queryByTime(@RequestParam("time") int time);
}
